package ch12;
import java.util.Scanner;
/**
 * Created by hasee on 2017/9/10.
 */
public class Hailstone {
    public static void main(String[] args) {
        Scanner fuck = new Scanner(System.in);
        System.out.println("Enter a integer: ");
        int a = fuck.nextInt();
        int length = 0 ;
        while (a>1){if (a%2!=0)
            a=a*3+1;
        else
            a=a/2;
        length++;}
        System.out.println(length);

    }
}
